package com.example.springboot.listener;

import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

/**
 * refreshContext(context);
 * 从ioc容器中获取所有的ApplicationRunner和CommandLineRunner进行回调
 * ApplicationRunner先回调，CommandLineRunner再回调
 * @Author:ChenZhangKun
 * @Date: 2020/10/14 21:34
 */
@Component
public class MyCommandLineRunner implements CommandLineRunner {
    @Override
    public void run(String... args) throws Exception {
        System.out.println("CommandLineRunner.. tun");
    }
}
